package com.kevin.service;

import com.kevin.IUserService;
import com.kevin.Student;
import com.kevin.annotation.RemoteService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RemoteService
public class UserServiceImpl implements IUserService {
    @Override
    public String getName(String name) {
        log.info("request name is {}",name);
        return "my name is provider";
    }

    @Override
    public Student getStudent(Student student) {
        log.info("request student is {}",student.toString());
        student.setName("wwh");
        return student;
    }
}
